<?php
/**
 * The sidebar containing the main widget area.
 *
 * If no active widgets in sidebar, let's hide it completely.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?>

    
<?php if (is_active_sidebar(1)) : ?>
    <div id="extra-sidebar" class="widget-area" role="complementary">
        <div id="navigasjonsmeny">
            <nav id="leftsite-navigation" class="left-navigation" role="navigation">
                <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'leftnav-menu')); ?>
            </nav><!-- #site-navigation -->
        </div>
        <div id="leftnav-widgets">
            <?php dynamic_sidebar('sidebar-4'); ?>
        </div>
    </div><!-- .extra-sidebar .widget-area -->
    <?php
endif; // end extra sidebar widget area ?>